using System;

namespace 数据挖掘实验.Logger
{
    public class Logger
    {
        string logs = string.Empty;
        public event Action<string, string> onLog;
        public void Log(string info)
        {
            logs += info;
            onLog?.Invoke(logs, info);
        }

        public void Clear()
        {
            logs = string.Empty;
        }
    }
}